#ifndef PDFKIT_H
#define PDFKIT_H

#include <QImage>
#include <QLibrary>
#include <QDebug>
#include "poppler-qt5.h"

using namespace Poppler;

class PDFKit
{
public:
    PDFKit(){}
    PDFKit(QString path);
    ~PDFKit();

    QString fileName;
    Page *page;
    Document *document;
    int totalPage;
    QSize pageSize;
    float multiple;

    int get_totalPage(){return totalPage;}
    int get_pageWidth()
    {
        return pageSize.width()*multiple;
    }
    int get_pageHeight(){return pageSize.height()*multiple;}
    QImage get_page_image(int page);
    QImage get_actual_image(int page);
    QImage GetActruallyPageImage(int page);
    QSize get_page_size(int page);
};

#endif // PDFKIT_H
